<template>
  <button @click="alert">{{ text }}</button>
</template>

<script>
export default {
  name: 'Button',
  props: {
    text: String
  },
  methods: {
    alert() {
      console.log(this.text)
    }
  }
}
</script>

<style lang="sass" scoped></style>
